
package com.be.beadmin.device.repository;

import com.be.beadmin.device.entity.EhsStandard;
import com.be.beadmin.device.entity.InspectStandard;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
* @author zty
* @date 2023-08-13
**/
public interface EhsStandardRepository extends JpaRepository<EhsStandard, String>, JpaSpecificationExecutor<EhsStandard> {

    EhsStandard findEhsStandardByIdAndDelete(String id, Integer delete);

    EhsStandard findEhsStandardById(String id);

    EhsStandard findEhsStandardByTemplateIdAndDelete(String templateId, Integer delete);

    List<String> findTemplateIDsByDelete(Integer delete);
}